<%--
  Created by IntelliJ IDEA.
  User: lenovo
  Date: 2018/12/28
  Time: 10:47
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page isELIgnored="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"  %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<form action="/newstype/doupdate" method="post">
    <input name="id" type="hidden" value="${newsType.id}"/>
    类别名称：<input type="text" value="${newsType.typeName}" name="typeName"/><br/>
    父类别:<select name="parentId">
    <option value="0">==顶级类别==</option>
    <c:forEach items="${plist}" var="it">

        <option <c:if test="${newsType.parentId==it.id}">selected</c:if>  value="${it.id}">${it.typeName}</option>
    </c:forEach>
</select><br/>
    <input type="submit" value="修改"/>

    <script type="text/javascript">${label}</script>


</form>

</body>
</html>
